package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.ValueSpecification;

/**
 * @author Bright Lee
 */
public final class SetNamesStatement implements SqlSessionStatement, Statement {

    private int beginIndex;
    private int endIndex;
    private ValueSpecification valueSpecification;

    public SetNamesStatement(int beginIndex, ValueSpecification valueSpecification) {
        this.beginIndex = beginIndex;
        this.endIndex = valueSpecification.getEndIndex();
        this.valueSpecification = valueSpecification;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public ValueSpecification getValueSpecification() {
        return valueSpecification;
    }

}
